package cn.blog.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.blog.feign.impl.UserClientFail;
import cn.triedblog.dto.SystemUserLogin;

@FeignClient(value = "blog-admin-user-center", fallback = UserClientFail.class)
public interface UserClient {

	@GetMapping(value = "/sysUser/internal/get_user_info", params = "username")
	SystemUserLogin findByUsername(@RequestParam("username") String username);

}